import { geDataSetting } from "@/api/config";

export default async function usePlcInfo(params) {
  let res = await geDataSetting(params);
  let data =
    res.items?.map((item) => {
      return {
        label: item.plcAddress,
        value: item.id,
      };
    }) ?? [];
  return data;
}
